<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\common\model;

use think\Model;

class SiteConfig extends BaseModel
{
    public $createTime = false;
    public $updateTime = false;
    public $softDel = false; //时间类型的软删除

    public function getTableFieldsComment(){
        return [
            [
                $this->commentFieldName => '{"disc":"序号","name":"id","explain":"","type":"hidden","sort":"1","type_value_custom":null,"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"=","is_tree":false}}'
            ],
            [
                $this->commentFieldName => '{"disc":"配置名称","name":"name","explain":"唯一","type":"text","sort":"2","type_value_custom":null,"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"=","is_tree":false}}'
            ],
            [
                $this->commentFieldName => '{"disc":"配置值","name":"value","explain":"","type":"text","sort":"3","type_value_custom":null,"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"=","is_tree":false}}'
            ],
            [
                $this->commentFieldName => '{"disc":"描述","name":"description","explain":"","type":"text","sort":"4","type_value_custom":null,"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"=","is_tree":false}}'
            ],
        ];
    }

    public function getTableComment(){
        return '';
    }
}